package com.qijian.maindata.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qijian.maindata.domain.ExamineSchemeDetails;
import com.qijian.maindata.domain.query.ExamineSchemeDetailsQuery;
import com.qijian.maindata.domain.vo.ExamineSchemeDetailsVo;
import com.qijian.maindata.mapper.ExamineSchemeDetailsMapper;
import com.qijian.maindata.service.IExamineSchemeDetailsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 检验方案明细Service业务层处理
 *
 * @author qijian
 * @date 2021-11-24
 */
@Service
@RequiredArgsConstructor
public class ExamineSchemeDetailsServiceImpl extends ServiceImpl<ExamineSchemeDetailsMapper, ExamineSchemeDetails> implements IExamineSchemeDetailsService {

    private final ExamineSchemeDetailsMapper examineSchemeDetailsMapper;

    @Override
    public Page<ExamineSchemeDetailsVo> pageVo(Page<ExamineSchemeDetails> page, Wrapper<ExamineSchemeDetailsQuery> queryWrapper) {
        return examineSchemeDetailsMapper.selectPageVo(page, queryWrapper);
    }

    @Override
    public List<ExamineSchemeDetailsVo> vo(Wrapper<ExamineSchemeDetailsQuery> queryWrapper) {
        return examineSchemeDetailsMapper.selectPageVo(queryWrapper);
    }
}
